package com.ssm.controller;

import com.ssm.entity.ElcImgs;
import com.ssm.service.ElcImgsService;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;

/**
 * (ElcImgs)表控制层
 *
 * @author makejava
 * @since 2021-06-01 10:37:25
 */
@RestController
@RequestMapping("elcImgs")
public class ElcImgsController {
    /**
     * 服务对象
     */
    @Resource
    private ElcImgsService elcImgsService;

    /**
     * 通过主键查询单条数据
     *
     * @param id 主键
     * @return 单条数据
     */
    @GetMapping("selectOne")
    public ElcImgs selectOne(Integer id) {
        return this.elcImgsService.queryById(id);
    }

}
